﻿using System;
using System.Configuration;

namespace FBGraph.Web.Configuration
{
    /// <summary>Configured FBGraph authorization based on a user's authorization state with a Facebook application.</summary>
    public class FBGraphAppAuthorizationElement : ConfigurationElement
    {
        /// <summary>Gets or sets whether it is required that the user authorize the active Facebook application.</summary>
        [ConfigurationProperty("isRequired", DefaultValue = false)]
        public Boolean IsRequired
        {
            get { return (Boolean)this["isRequired"]; }
            set { this["isRequired"] = value; }
        }
    }
}